package main.hooks;

import main.RSInter;

public class RSInterface {

	/**
	 * Id of the interface
	 */
	int id;
	
	int type; //Not sure yet
	
	RSInter interf;
	
	public RSInterface(RSInter interf) {
		this.interf = interf;
	}

		public int getId() {
		return getRSInter().id;
	}
	public RSInterfaceChild[] getChildren() {
		RSInterfaceChild[] temp = new RSInterfaceChild[1000];
		int z = 0;
		for(int i : getRSInter().children) {
			if(i == -1)
				continue;
			temp[z] = new RSInterfaceChild(i);
			z++;
		}
		return temp;
	}
	public RSInterfaceChild getChild(int id) {
		return new RSInterfaceChild(getRSInter().children[id]);
	}
	public RSInter getRSInter() {
		return interf;
	}
	public String getText() {
		return getRSInter().message;
	}
}
